package com.solveit.aps.io.db.activerecord;

import java.util.HashMap;

import com.solveit.core.db2.caching.EntityCollection;

class ActiveRecordCache {
	private static HashMap<Class<?>, EntityCollection<?>> map = new HashMap<Class<?>, EntityCollection<?>>();

	public static boolean containsKey(Class<?> clazz) {
		return map.containsKey(clazz);
	}

	public static void put(Class<?> clazz, EntityCollection<?> collection) {
		map.put(clazz, collection);
	}

	public static EntityCollection<?> get(Class<?> clazz) {
		return map.get(clazz);
	}
}
